//
//  HRZUserMgHeadView.m
//  EMarket
//
//  Created by 石头 on 2018/5/16.
//  Copyright © 2018年 好日子. All rights reserved.
//

#import "HRZUserMgHeadView.h"

#import "HRZSpeedy.h"
#import "UIView+SPExtension.h"

@interface HRZUserMgHeadView()

@property (weak, nonatomic) IBOutlet UIView *headBgView;

@property (weak, nonatomic) IBOutlet UIButton *headButton;


@end

@implementation HRZUserMgHeadView
#pragma mark - Intial
- (void)awakeFromNib
{
    [super awakeFromNib];
    
    [HRZSpeedy hrz_setUpBezierPathCircularLayerWithControl:self.headButton size:CGSizeMake(self.headButton.sp_width * 0.5, self.headButton.sp_height * 0.5)];
    self.headBgView.userInteractionEnabled = YES;
    UITapGestureRecognizer *tapGest = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(headViewTouch)];
    [self.headBgView addGestureRecognizer:tapGest];
    
}

#pragma mark - 头部点击
- (IBAction)headButtonClick {
    !_headButtonClickBlock ? : _headButtonClickBlock();
}

#pragma mark - 二维码点击
- (IBAction)qrCodeClick {
    !_erCodeClickBlock ? : _erCodeClickBlock();
}
#pragma mark - 我的主页点击
- (IBAction)homePageClick {
    !_myHomeClickBlock ? : _myHomeClickBlock();
}

#pragma mark - 头部View点击
- (void)headViewTouch
{
    !_headViewTouchBlock ? : _headViewTouchBlock();
}
@end
